package poker.ai;

import enums.*;

public class Context {

	private double handStrength;
	private int counter;
	private State stateEnum;
	private PlayersLeft playersLeftE;
	private int playersLeft;
	private TablePosition tablePosition;	
	private ActionEnum actionEnum;
	
	public Context(State stateEnum, PlayersLeft playersLeftE, int playersLeft,TablePosition tablePosition, ActionEnum actionEnum)
	{
		handStrength = 0;
		counter = 0;	
		
		this.stateEnum = stateEnum;
		this.playersLeftE = playersLeftE;
		this.tablePosition = tablePosition;
		this.actionEnum = actionEnum;
		this.playersLeft = playersLeft;
	}
	
	public double getHandStrength() {
		return handStrength;
	}

	public void setHandStrength(double handStrength) {
		this.handStrength = handStrength;
	}

	public int getCounter() {
		return counter;
	}

	public void setCounter(int counter) {
		this.counter = counter;
	}
	
	
	public State getStateEnum(){ return stateEnum;}
	public PlayersLeft getPlayersLeftEnum(){ return playersLeftE;}
	public TablePosition getTablePositionEnum(){ return tablePosition;}
	public ActionEnum getActionEnum(){ return actionEnum;}
	public int getPlayersLeft() { return playersLeft; }

	public String toString()
	{
		String print = stateEnum.toString() + " " + playersLeftE.toString() + " "
					+ tablePosition.toString() + " "+ actionEnum.toString();
		
		return print;
	}
}
